package com.ph.util.dbbackup;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;

public class DBBackUp extends Task {
	private static DBBackUpEXE backupStructure, backupPurviewData,
			backupUserData;

	public static void main(String[] args) {
		try {
			backUpOperation();
		} catch (Throwable e) {
			e.printStackTrace();
		}
	}

	public void execute() throws BuildException {
		try {
			backUpOperation();
		} catch (Throwable e) {
			e.printStackTrace();
		}
	}

	private static void backUpOperation() {
		backupStructure = new DBBackUpStructure();
		backupStructure.exe();

		backupPurviewData = new DBBackUpPurviewData();
		backupPurviewData.exe();

		backupUserData = new DBBackUpUserData();
		backupUserData.exe();
	}
}
